package Ms.dao;


import Ms.entity.enums.UserStatus;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import org.apache.ibatis.annotations.Update;

@Mapper
public interface UserMapper {
    @Update("UPDATE user SET status = #{status} WHERE user_id = #{userId}")
    int updateStatusById(@Param("userId") Long userId, @Param("status") UserStatus status);

    @Update("UPDATE user SET password = #{password} WHERE user_id = #{userId}")
    int updatePassword(@Param("userId") Long userId, @Param("password") String password);
}